package com.miaoquan.mqapitbk.domain.builder;

import com.miaoquan.mqmbg.model.TbkProduct;
import com.taobao.api.response.TbkDgOptimusMaterialResponse;

/**
 * @author Fa
 * @date 2020-03-29 19:44
 */
public class TbkProductDirector {
    private TbkProductBuilder tbkProductBuilder;

    public TbkProductDirector(TbkProductBuilder tbkProductBuilder) {
        this.tbkProductBuilder = tbkProductBuilder;
    }

    /**
     * 通过类<code>TbkDgOptimusMaterialResponse.MapData</code>对象建造淘宝客商品对象
     *
     * @param mapData 物料精选商品数据
     * @return 通用淘宝客商品对象
     */
//    public TbkProduct buildByOptimusMaterialMapData(TbkDgOptimusMaterialResponse.MapData mapData) {
//        tbkProductBuilder.buildName(mapData.getTitle());
//        tbkProductBuilder.buildId(mapData.getItemId());
//        return tbkProductBuilder.build();
//    }

}
